package com.example.rightmost.dao;

import com.example.rightmost.entity.Topic;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TopicMapper {

    int updateTopic(Topic topic);

    List<Topic> getTopicList(Topic topic);

    int addTopic(Topic topic);

    int deleteTopic(Integer id);

    int updateStatus(Integer id);

    Topic selectTopic(Topic topic);

    List<Topic> selectAll();

    Topic getTopic(Integer id);
}
